const app = getApp()
Page({
  data: {
    PageCur: 'rank'
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.onShareAppMessage();
  },
  NavChange(e) {
    this.setData({
      PageCur: e.currentTarget.dataset.cur
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  // onLoad: function (options) {
  //   console.log("index 开始");
  // },
  // onShow: function (options) {
  //   console.log("index ready");
  //   console.log(this.selectComponent('#rank1'));
  // },
  onShareAppMessage: function () {
    wx.showShareMenu({
      withShareTicket: true,
      menus: ['shareAppMessage', 'shareTimeline']
    })
  },

})
